package com.sumainfor.pc.gmio.controller.MktFeign;

import com.sumainfor.pc.gmio.service.impl.market.PaIdBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *
 * <p>
 *
 * @author: Mr.Wang
 * @create: 2019-09-05 14:52
 **/
@Controller
@RequestMapping("/key/paIdBill")
public class PaIdBillController {

    @Autowired
    PaIdBillService paIdBillService;

    /**
     * 根据来源编号查询账单信息
     *
     * @return
     * @author zhoucong
     * @data 2019/9/5
     * @Param
     */
    @ResponseBody
    @GetMapping("/getPaIdTenantBill")
    public List<Map<String, Object>> getPaIdTenantBill(@RequestParam Map<String, Object> params) {
        return paIdBillService.getPaIdTenantBill(params);
    }

    @ResponseBody
    @PostMapping("/getRoomBill")
    public Map<String,Object> getRoomBill(@RequestBody Map<String,Object> params){
        return paIdBillService.getRoomBill(params);
    }
}
